import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/login'
import certifyPage from '@/components/certifyPage'
import main from '@/components/main'
import complaint from '@/components/complaint'
import copyrightTrade from '@/components/copyrightTrade'
import explore from '@/components/explore'
import helpDoc from '@/components/helpDoc'
import users from '@/components/users'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: Login
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '/certify',
      name: 'certifyPage',
      component: certifyPage
    },
    {
      path: '/main',
      name: 'main',
      component: main
    },
    {
      path: '/complaint',
      name: 'complaint',
      component: complaint
    },
    {
      path: '/copyrightTrade',
      name: 'copyrightTrade',
      component: copyrightTrade
    },
    {
      path: '/explore',
      name: 'explore',
      component: explore
    },
    {
      path: '/helpDoc',
      name: 'helpDoc',
      component: helpDoc
    },
    {
      path: '/users',
      name: 'users',
      component: users
    }
  ]
})
